{template aljbd:vheader}
<link rel="stylesheet" href="{$common_path}/static/weui/css/weui.min.css?{$version}">
<link rel="stylesheet" href="{$common_path}/static/weui/css/jquery-weui.min.css?{$version}">
<script src="{$common_path}/static/js/jquery-2.2.3.min.js?{$version}"></script>
<script src="{$common_path}/static/weui/js/jquery-weui.min.js?{$version}"></script>
<link rel="stylesheet" href="source/plugin/aljtc/static/css/style.css" />
<link href="source/plugin/aljtc/static/css/fonts/iconfont.css" rel="stylesheet" type="text/css">
<style>
	.menubar{right:14%;}
</style>
<style>
	.weui-flex__item .detail-message {
		max-height: 90px;
		overflow: hidden;
	}
</style>
<div class="datacontent">
</div>
<div class="weui-loadmore" id="load" style="display: none;">
	<i class="weui-loading"></i>
	<span class="weui-loadmore__tips">&#27491;&#22312;&#21152;&#36733;</span>
</div>
<div class="weui-loadmore weui-loadmore_line" id="loaded"style="display: none;">
	<span class="weui-loadmore__tips">&#26242;&#26080;&#25968;&#25454;</span>
</div>
<div id="empty" style="display: none;">
	<div class="empty_data"></div>
	<div class="empty_title">
		<p>&#25214;&#19981;&#21040;&#30456;&#20851;&#20869;&#23481;</p>
	</div>
</div>
<div id="mask_l" style="display: none;" onclick="showtop()"></div>
<div class="swiper-container1" style="display: none">
	<div class="swiper-wrapper swiper-wrapper12545">

	</div>
	<div class="swiper-pagination"></div>
</div>
{eval $ajax_url = 'plugin.php?id=aljtc&act=mobile_index_goods&uid='.intval($bd['uid']).'&bid='.intval($bd['id'])}
<script>
    var page = 1;
    var loading = false;
    $(document.body).infinite(100).on("infinite", function() {
        if(loading) return;
        $('#load').show();
        page++;
        loading = true;
        getdata(page);
    });
    function getdata(page) {
        var data ={
            'page':page
        }
        var url = '{$ajax_url}';
        $.post(url,data,function(res) {
            if(page == 1) {
                if(res != 1) {
                    loading = false;
                    $('#load').hide();
                    $('.content').append(res);
                    $('.datacontent').append(res);
                }else {
                    $('#load').hide();
                    $('#loaded').hide();
                    $('#empty').show();
                    loading = true;
                }
            }else {
                if(res != 1) {
                    loading = false;
                    $('#load').hide();
                    $('.datacontent').append(res);
                } else {
                    $('#load').hide();
                    $('#loaded').show();
                    loading = true;
                }

            }
        });
    }
    getdata(1);
    $(document).on('click', '.aljsqImg', function () {
        var imgs = '';
        $(this).parent().parent().find('img').each(function () {
            imgs += "<div class=\"swiper-slide slide1\"><div class='swiper-zoom-container'><img src=\""+$(this).attr('src')+"\"></div></div>";
        });
        $('.swiper-wrapper12545').html(imgs);
        $('.swiper-container1').show();
        aljsqImgSwiper = new Swiper('.swiper-container1', {
            pagination : '.swiper-pagination',
            paginationType: 'fraction',
            //freeMode:true,
            zoom: true,
            observer:true,
            loop:true,
        });
        aljsqImgSwiper.slideTo($(this).parent().find('.aljsqImg').index($(this))+1,0);
        return false;
    });

    $('.swiper-container1').click(function () {
        $('.swiper-container1').hide();
        aljsqImgSwiper.destroy();
        return false;
    });
    function showset(obj){
        var menu = $(obj).prev('.menubar');
        if(menu.hasClass('openright')) {
            menu.removeClass('openright').addClass('openleft');
        }else {
            menu.removeClass('openleft').addClass('openright');
        }
    }
    $(document).on('click', '.fullText', function () {
        console.log($(this).prev().attr('data-tel'));
        if($(this).prev().attr('data-tel')){
            $(this).prev().append('<a style="padding: 12px 1em;border-radius: 5px;" href="tel:'+$(this).prev().attr('data-tel')+'" class="weui-btn weui-btn_mini weui-btn_primary"><i class="iconfont icon-dianhua2"></i>{lang aljtc:footer_touch_4}</a>');
        }
        $(this).prev().css("max-height","none");
        $(this).hide();
        return false;
    });
</script>
<style>
	#topNav .active span {
		color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	#topNav .active span:after {
		background: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	.clolorblue {
		color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	#c_main_menu .c_menu_this span {
		color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	#c_main_menu .c_menu_this b {
		color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	.indexBox {
		background-color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	.swiper-pagination-bullet-active {
		background: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	.weui-btn_primary, .weui-switch:checked {
		background-color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if}!important;
	}
	.layui-m-layerbtn span[yes] {
		color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	.weui_bar__item_on span {
		color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if}!important;
	}
	.weui_bar__item_on span:after {
		background: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	.tag-on {
		background-color: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if}!important;
	}
	.color-header {
		background: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if}!important;
	}
	.swiper-pagination-bullet-active {
		opacity: 1;
		background: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
		width: 12px;
		border-radius: 2px;
		height: 4px;
	}
	.timeline-li-detail .detail-message .message-p span {
		background: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
	.timeline-li-detail .detail-message .view-p span {
		background: {if $settings['mobilenavbackcolor']['value']}{$settings['mobilenavbackcolor']['value']}{else}#DD2726{/if};
	}
</style>
{template aljbd:footer}